export const getFilePathStore = (path: string) => {
    return new URL(path).pathname.replace(/\.(ts|js|vue|jsx|tsx)$/g, '').replace(/\/([a-z])/g, (match, letter) => letter.toUpperCase());
}

export const getIsNull = (...str: string[]) => {
    return str.some((s) => s === null || s === undefined || s.trim() === '' || s.trim().length <= 0);
}

export const getSomeValue = <T>(value: T, ...bol: T[]): boolean => {
    return bol.some(x => x !== undefined && x !== null && x == value);
};

export const getJSONConfig = (data: any) => { return JSON.parse(JSON.stringify(data)); };